]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix clicking on notification icons after updates
authorFlorian Müllner <fmuellner@src.gnome.org>
Tue, 23 Feb 2010 14:58:33 +0000 (15:58 +0100)
committerFlorian Müllner <fmuellner@src.gnome.org>
Wed, 24 Feb 2010 18:57:35 +0000 (19:57 +0100)
When a notification is updated by the application, the corresponding
app in its source is lost, so it is no longer possible to switch to
the application by clicking either the notification or the summary icon.
As the associated application of a source never changes, it appears safe
to leave it alone on notification updates.

https://bugzilla.gnome.org/show_bug.cgi?id=610820

js/ui/notificationDaemon.js

index 89710d62bd77872f9b48ff6f6df30d16d58ee19d..a0774b7f83d937692f1c2965842e9af74ba32407 100644 (file)
@@ -300,6 +300,9 @@ Source.prototype = {
     _init: function(sourceId, icon, hints) {
         MessageTray.Source.prototype._init.call(this, sourceId);
 
+        this.app = null;
+        this._openAppRequested = false;
+
         this.update(icon, hints);
     },
 
@@ -309,9 +312,6 @@ Source.prototype = {
         this._icon = icon;
         this._iconData = hints.icon_data;
         this._urgency = hints.urgency;
-
-        this.app = null;
-        this._openAppRequested = false;
     },
 
     createIcon: function(size) {